{extend name="base" /}
{block name="css"}
<link rel="stylesheet" type="text/css" href="__STATIC__/plugins/webuploader/webuploader.css?v={$v}" />
{/block}
{block name="main"}
<style>
.goodsCat{display:inline-block;width:150px}
.accreds{display:inline-block;width:150px}
</style>
<div class="l-loading" style="display: block" id="wst-loading"></div>
<form id='editFrom' autocomplete='off'>
<input type='hidden' id='id' class='ipt' value="{$object['id']}"/>
<table class='wst-form wst-box-top'>
 
  <tr>
     <td colspan='2' class='head-ititle'>基础信息</td>
  </tr>


  <tr>
     <th width='150'>关键词<font color='red'>*</font>：</th>
     <td><input type="text" id='guanjianci' name='guanjianci' class='ipt' value="{$object['guanjianci']}"  data-rule="关键词: required;" /></td>
  </tr>
  
  <tr>
     <th width='150'>店铺名称<font color='red'>*</font>：</th>
     <td><input type="text" id='dianpu' name='dianpu' class='ipt' value="{$object['dianpu']}" maxLength='50' data-rule="店铺名称: required;" data-target="#msg_shopSn"/><span class='msg-box' id='msg_shopSn'></span></td>
  </tr>
  <tr>
     <th>店铺链接<font color='red'>*</font>：</th>
     <td><input type="text" id='dianpulianjie' class='ipt' value="{$object['dianpulianjie']}" maxLength='50' data-rule="店铺链接: required;"/></td>
  </tr>
  <tr>
     <th>宝贝链接<font color='red'>*</font>：</th>
     <td><input type="text" id='baobeilianjie' class='ipt' value="{$object['baobeilianjie']}" maxLength='20' data-rule="宝贝链接: required;"/></td>
  </tr>
   <tr>
     <th>放单时间<font color='red'>*</font>：</th>
     <td>
        <input type="text" style="margin:0px;vertical-align:baseline;" id="fangdanshijian" name="fangdanshijian"  data-rule="放单时间: required;" class="ipt" maxLength="20"  />
     </td>
  </tr>
  
  <tr>
     <th>时间间隔<font color='red'>*</font>：</th>
     <td><input type="text" id='jiangeshijian' class='ipt' value="{$object['jiangeshijian']}" data-rule="间隔时间: required;"/></td>
  </tr>
  <tr>
     <th>单量<font color='red'>*</font>：</th>
     <td><input type="text" id='danliang' class='ipt' value="{$object['danliang']}"  style='' maxLength='50' data-rule="单量: required;"/></td>
  </tr>
  <tr>
     <th>单价<font color='red'>*</font>：</th>
     <td><input type="text" id='danjia' class='ipt' value="{$object['danjia']}" maxLength='50' data-rule="单价: required;"/></td>
  </tr>
  <tr>
     <th>商家备注<font color='red'></font>：</th>
     <td><textarea id="shangjiabeizhu" class="ipt" style="min-height:100px" placeholder="">{$object['shangjiabeizhu']}</textarea></td>
  </tr>
  <tr>
     <td colspan='2' class='head-ititle'>图片信息</td>
  </tr>
 <tr>
     <th>图片<font color='red'>*</font>：</th>
     <td>
         <div id="preview" >
            <img src="__ROOT__/{if $object['tupian']==''}{:WSTConf('CONF.shopLogo')}{else}{$object['tupian']}{/if}"  height="150" />
        </div>
        <div id='adFilePicker' style="margin-left:40px;">图片</div>
        <input type="hidden" id="tupian"  value="{$object['tupian']}" class="ipt" />
        <span id='uploadMsg'></span>
     </td>
  </tr>
  <tr>
     <td colspan='2' align='center'>
       <input type='button' value='保存' class='btn btn-blue' onclick='javascript:save()'>
       <input type='button' value='返回' class='btn' onclick='javascript:history.go(-1)'>
     </td>
  </tr>
</table>
</form>
<script>
$(function(){
    initEdit({});
    //时间插件
    $("#fangdanshijian").ligerDateEditor({format: "yyyy-MM-dd hh:mm:ss",showTime : true}).setValue("{$object['fangdanshijian']}");
})

</script>
{/block}
{block name="js"}
<script type='text/javascript' src='__STATIC__/plugins/webuploader/webuploader.js?v={$v}'></script>
<script src="__ADMIN__/renwu2/shops.js?v={$v}" type="text/javascript"></script>
{/block}